Add safe hardening to mariadb.service units
authorAquila Macedo <aquilamacedo@riseup.net>
Fri, 16 Jan 2026 00:53:16 +0000 (19:53 -0500)
committerOtto Kekäläinen <otto@debian.org>
Fri, 10 Apr 2026 10:10:10 +0000 (10:10 +0000)
commite6598d03162e8ea799e60ad1b22a58c1e8cd1e0c
treecce5335ced8422c94e4471a7a3d4ec962f6cd2b4
parent9bcbd57ab438529d53ab20162531f0bbce2968ae
Add safe hardening to mariadb.service units

Add low regression systemd hardening directives to mariadb.service and
mariadb@.service to improve 'systemd-analyze security' without touching
the historically-problematic areas (capability bounding /
NoNewPrivileges / PrivateDevices). Refs: MDEV-10404, MDEV-19878,
MDEV-36591, MDEV-36681

Includes kernel/cgroup protections, disables realtime scheduling, locks
personality, and restricts namespace creation (overrideable via drop-in)

This patch should be submitted upstream once proven stable in Debian.

Forwarded: no

Gbp-Pq: Name systemd-hardening-safe-defaults.patch
support-files/mariadb.service.in
support-files/mariadb@.service.in